// 系统用户
import request from "@/utils/https/requests";
// 列表
export function adminList(data: any) {
  return request({
    url: "/admin/list",
    method: "post",
    data,
  });
}
// 添加
export function postAddAdmin(data: any) {
  return request({
    url: "/admin/postAdd",
    method: "post",
    data,
  });
}
// 修改
export function postModAdmin(data: any) {
  return request({
    url: `/admin/postMod/${data.id}`,
    method: "post",
    data,
  });
}
// 详情
export function adminDetail(id: string) {
  return request({
    url: `/admin/detail/${id}`,
    method: "post",
  });
}
// 删除
export function postDeleteAdmin(id: string) {
  return request({
    url: `/admin/postDelete/${id}`,
    method: "post",
  });
}
